﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Surface.Presentation;
using Microsoft.Surface.Presentation.Controls;
using Microsoft.Surface.Presentation.Input;

namespace BoardGamePlayer
{
    /// <summary>
    /// Interaction logic for Token.xaml
    /// </summary>
    public partial class Token : ScatterViewItem
    {
        public Token()
        {
            InitializeComponent();
        }

        public Token(Token copyToken) 
        {
            this.tokenEllipse = copyToken.tokenEllipse;
            this.Width = copyToken.Width;
            this.Height = copyToken.Height;
        }

        public Token(Ellipse ellipse) 
        {
            TokenEllipse = ellipse;
        }

        public Brush TokenBrush
        {
            get { return tokenEllipse.Fill; }
            set { tokenEllipse.Fill = value; }
        }

        public Ellipse TokenEllipse
        {
            get { return tokenEllipse; }
            set { tokenEllipse = value; }
        }

        protected override void OnManipulationStarted(ManipulationStartedEventArgs e)
        {
            BeginDragDrop(this);
            base.OnManipulationStarted(e);
        }

    }
}
